package com.gc.ykqx.ui.custom;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.gc.ykqx.service.util.ActivityCollector;

/**
 * Created by wsd on 2017/6/2.
 */

public class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //添加该活动
        ActivityCollector.addActivity(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        //删除该活动
        ActivityCollector.removeActivity(this);
    }
}
